package com.itheima.framework.view;

/*****
 * @Author: http://www.itheima.com
 * @Description: com.itheima.framework.view.ViewMethod
 ****/
public class ViewMethod implements View {


    @Override
    public Integer method(Object result) {
        if(result instanceof String){
            //转发
            return 1;
        }
        return 2;
    }
}
